<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/style/css/ch-ui.admin.css">
    <link rel="stylesheet" href="/style/font/css/font-awesome.min.css">
</head>
<body>
<!--面包屑导航 开始-->
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="/">首页</a> &raquo; <a href="#">员工管理</a> &raquo; 添加员工
</div>
<!--面包屑导航 结束-->

<div class="result_wrap">
    <p id="dic_error" th:text="${error}" style="color:red"></p>
    <form action="/admin/emp/add" method="post" onsubmit="">
        <table class="add_tab">
            <tbody>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="姓名"></th:block>
                </th>
                <td>
                    <input id="name" type="text" name="name">
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="密码"></th:block>
                </th>
                <td>
                    <input id="password" type="text" name="password">
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>性别:</th>
                <td>
                    <select name="gender" th:if="${#lists.size(sexs) gt 0}">
                        <option>未选择</option>
                        <th:block th:each="sex,index:${sexs}">
                            <option th:value="${sex}" th:text="${sex}"></option>
                        </th:block>
                    </select>
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="年龄"></th:block>
                </th>
                <td>
                    <input id="age" type="text" name="age">
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="电话"></th:block>
                </th>
                <td>
                    <input id="phone" type="text" name="phone">
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>职位:</th>
                <td>
                    <select name="deptName" th:if="${#lists.size(depts) gt 0}">
                        <option>未选择</option>
                        <th:block th:each="dept,index:${depts}">
                            <option th:value="${dept.name}" th:text="${dept.name}"></option>
                        </th:block>
                    </select>
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="工资"></th:block>
                </th>
                <td>
                    <input id="salary" type="text" name="salary">
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="地址"></th:block>
                </th>
                <td>
                    <input id="address" type="text" name="address">
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input type="submit" value="提交">
                    <input type="button" class="back" onclick="history.go(-1)" value="返回">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript" src="/style/js/jquery.js"></script>
<script type="text/javascript" src="/style/js/ch-ui.admin.js"></script>
</body>
</html>